import sum from "./js/sum";
import count from "./js/count";
// import {mul} from "./js/math";
// 打包的资源需要引入
import './css/index.css'
import './less/index.less'
import './sass/index.sass'
import './sass/index.scss'
import './styl/index.styl'
import './css/iconfont.css'
// var a = ;
console.log(count(1, 2));
console.log(sum(1,2,3,4));
// console.log(mul(3,3));
document.getElementById('btn').onclick = function () {
  // webpackChunkName: "math" */ webpack命名
  import(/* webpackChunkName: "math" */'./js/math')
    .then(({mul})=>{
      console.log(mul(3, 3));
    })
}
// vue-loader和react-loader自动实现模块的热替换
// if (module.hot) {
//   module.hot.accept('./js/sum',回调函数)
//   module.hot.accept('./js/count'，回调函数)
// }